package com.itheima.jdbc;

/**
 * @author CC小天才
 * @website www.flyskill.cn
 * @date 2021/10/13 22:40
 **/

public class deleteAccountTest {
    ApplicationContext applicationContext=new ClassPathXmlApplicationContext("applicationContext.xml");
    AccountDao accountDao= (AccountDao) applicationContext.getBean("accounDao");
    Account account=new Account();

    int num=accountDao.deleteAccount(1);
    if(num>0){
        System.out.println("成功删除了"+num+"条数据");
    }else{
        System.out.println("删除数据失败！);
    }
}
